<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="peizhi.jsp"%>
<script type="text/javascript" src="${ctx}/js/alertNew.js"></script>
<div class="header bg-main"> 
	   <div class="logo margin-big-left fadein-top"> 
	    <h1><img src="${ctx}/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />后台管理中心</h1> 
	   </div> 
	   <div class="head-l">
	    <a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;
	    <a href="##" class="button button-little bg-blue"><span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;
	    <a class="button button-little bg-red" href="${ctx}/login/outUser"><span class="icon-power-off"></span> 退出登录</a> 
	   </div> 
	  </div> 
  <div class="leftnav"> 
   <%=s.getAttribute("resourceshtml") %>
  </div> 
 <script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
	  $(this).next().slideToggle(200);	
	  $(this).toggleClass("on"); 
  });
  $(".leftnav ul li a").click(function(){
	    $("#a_leader_txt").text($(this).text());
  		$(".leftnav ul li a").removeClass("on");
		$(this).addClass("on");
		var htmls = $(".leftnav").html();
		setSessions(htmls);
  });
});

function setSessions(ht){
	$.ajax({
		url:"${ctx}/login/setSessions",
		type:"post",
		data:"htmls="+ ht,
		success:function(data){
		}
	});
}
</script> 
  <ul class="bread"> 
   <li><a href="{:U('Index/info')}" target="right" class="icon-home">首页</a></li> 
   <li><a href="javascript:volid(0);" id="a_leader_txt">网站信息</a></li> 
   <li><b>当前语言：</b><span style="color:red;">中文</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li> 
  </ul> 
<script type="text/javascript">
var a = $(".leftnav ul li a[class=on]").text();
$("#a_leader_txt").text(a);
</script>